//
//  HYCUsViewController.m
//  FamilyTravel
//
//  Created by dllo on 15/10/31.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "HYCUsViewController.h"
#define WIDTH self.view.frame.size.width
#define HEIGHT self.view.frame.size.height
@interface HYCUsViewController ()
@property(nonatomic, retain) UIImageView *image;
@end

@implementation HYCUsViewController
- (void)dealloc {
    [_image release];
    
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.navigationItem.title = @"使用说明";
    UIImage *beanTripBackgroundImage=[UIImage imageNamed:@"tou.jpg"];
    [self.navigationController.navigationBar setBackgroundImage:beanTripBackgroundImage forBarMetrics:UIBarMetricsDefault];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(leftAction:)];
    
    // 背景设置
    self.image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, self.view.frame.size.height)];
    self.image.image = [UIImage imageNamed:@"a.jpg"];
    self.image.userInteractionEnabled = NO;
    [self.view addSubview:self.image];
    [_image release];
    
}

- (void)leftAction:(UIBarButtonItem *)button
{
    [self dismissViewControllerAnimated:YES completion:^{
        
        
    }];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
